package com.bjc.principle.state;

import java.util.HashMap;
import java.util.concurrent.ThreadPoolExecutor;

/**
 * @program: DesignPattern
 * @description: 状态模式
 * @author: bjc
 * @create: 2021-01-04 14:00
 */
public class StatePattern {
    public static void main(String[] args) {
        Context context = new Context();
        context.changeState(new Happy());
        context.doSomeThing();
    }
}
